package com.devunion.salon.client.app.bean;

import com.extjs.gxt.ui.client.data.BaseModel;
import com.extjs.gxt.ui.client.data.BaseTreeModel;

import java.io.Serializable;

/**
 * @author Timoshenko Alexander 28.02.2009 : 18:14:21
 */
public class AddressBeanModel extends BaseTreeModel implements Serializable {
    public AddressBeanModel() {
        super();
    }

    public AddressBeanModel(String address1, String address2, String city, CountryBeanModel country,
                            String email, String fax, String mobilePhone, String phone, String zipCode,
                            StateBeanModel state) {
        setAddress1(address1);
        setAddress2(address2);
        setCity(city);
        setCountry(country);
        setEmail(email);
        setFax(fax);
        setMobilePhone(mobilePhone);
        setPhone(phone);
        setZipCode(zipCode);
        setState(state);
    }

    public String getAddress1() {
        return get("address1");
    }

    public void setAddress1(String address1) {
        set("address1", address1);
    }

    public String getAddress2() {
        return get("address2");
    }

    public void setAddress2(String address2) {
        set("address2", address2);
    }

    public StateBeanModel getState() {
        return get("state");
    }

    public void setState(StateBeanModel state) {
        set("state", state);
    }

    public String getCity() {
        return get("city");
    }

    public void setCity(String city) {
        set("city", city);
    }

    public CountryBeanModel getCountry() {
        return get("country");
    }

    public void setCountry(CountryBeanModel country) {
        set("country", country);
    }

    public String getZipCode() {
        return get("zipCode");
    }

    public void setZipCode(String zipCode) {
        set("zipCode", zipCode);
    }

    public String getPhone() {
        return get("phone");
    }

    public void setPhone(String phone) {
        set("phone ", phone);
    }

    public String getMobilePhone() {
        return get("mobilePhone");
    }

    public void setMobilePhone(String mobilePhone) {
        set("mobilePhone", mobilePhone);
    }

    public String getFax() {
        return get("fax");
    }

    public void setFax(String fax) {
        set("fax", fax);
    }

    public String getEmail() {
        return get("email");
    }

    public void setEmail(String email) {
        set("email", email);
    }
}
